
# 将名称保存到 DIR_LIB_SRCS 变量
aux_source_directory(. DIR_DETECTOR)

include_directories(${OpenCV_INCLUDE_DIRS})

add_library(Detector SHARED ${DIR_DETECTOR})

target_include_directories(Detector PUBLIC include)

# 编译detector.so
target_include_directories(Detector
        PUBLIC include 
        PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
        PUBLIC ${OpenCV_INCLUDE_DIR}
        PUBLIC ${InferenceEngine_INCLUDE_DIRS}
)

target_link_libraries(Detector ${OpenCV_LIBS} Parameter)